/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.forward.mobile.optitrans.util;

/**
 *
 * @author jbromo
 */
public class SpeedStateRule {
    
   public enum STATE {
        ARRETE,STOP,VITESSE,RUNNING;
    }
    
    public static STATE getState(double vitesse){
        if(vitesse<1.5) return STATE.ARRETE;
        if(vitesse>1.5 && vitesse<80) return STATE.RUNNING;
        return STATE.VITESSE;
    } 
}
